/*
 * DealAnimationThread.java
 *
 * Copyright(c) 2010 - Kimnach
 *
 * Description:
 *      Handles dealing initiatives and showing a visual indicator that it was dealt
 *
 */

package gui.threads;

import gui.MainFrame;

/**
 *
 * @author dkimnach
 */
public class DealAnimationThread implements Runnable {

    private MainFrame callback;
    
    public DealAnimationThread (MainFrame callback) {
        this.callback = callback;
    }

    @Override
    public void run() {
        callback.waitCursor();

        callback.driver.deal();
        callback.updatePlayers();
        callback.repaint();
        try {
            Thread.sleep(150);
        } catch (InterruptedException ex) {
            
        }
        callback.doneCursor();
    }
}
